dialog: Let GtkButton manage its style classes
authorTimm Bäder <mail@baedert.org>
Sat, 29 Oct 2016 08:16:03 +0000 (10:16 +0200)
committerTimm Bäder <mail@baedert.org>
Mon, 31 Oct 2016 11:20:41 +0000 (12:20 +0100)
A button created using gtk_button_new_with_label will already have the
text-button style class applied.

gtk/gtkdialog.c

index 18da8e6bb44f1a42c6c7f3398578d1aa8ed40a32..d8464b34d10a557ddc21353bf2c0aca3dd3c553c 100644 (file)
@@ -927,7 +927,6 @@ gtk_dialog_add_button (GtkDialog   *dialog,
   button = gtk_button_new_with_label (button_text);
   gtk_button_set_use_underline (GTK_BUTTON (button), TRUE);
 
-  gtk_style_context_add_class (gtk_widget_get_style_context (button), "text-button");
   gtk_widget_set_can_default (button, TRUE);
 
   gtk_widget_show (button);